source 'https://cdn.cocoapods.org/'
source 'https://gitee.com/tjerwinchen/cocoa-mirror-spec.git'
require 'fastools'

platform :ios, '10.0'

use_frameworks!

inhibit_all_warnings!

project '../Mirror.xcodeproj'

target 'Mirror' do
  # Comment the next line if you don't want to use dynamic frameworks
  pod 'MirrorGoogleMobileAds', :inhibit_warnings => false, :path => '../../Pods/iphoneos'
  #pod 'MirrorAlicloudSDK', :inhibit_warnings => false, :path => '../../'

end

post_install do |installer|
  # 添加"RELEASE"到"Active Compialtion Conditions"
  add_release_to_active_compilation_conditions(installer.pods_project)
  Fastools::Pod.set_share_scheme(installer)
end

# 添加"RELEASE"到"Active Compialtion Conditions"
def add_release_to_active_compilation_conditions(project)
  # 修改 Swift Active Compilation Condidations 的设置，设成 RELEASE
  project.build_configurations.each do |config|
    if config.name == 'Release'
      config.build_settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] = 'RELEASE'
    end
  end
end
